package edu.nf.utils.handler;

import edu.nf.utils.ResultSetHandler;
import edu.nf.utils.RowProcessor;

import java.sql.ResultSet;
import java.sql.SQLException;

public class ArrayHandler implements ResultSetHandler<Object[]> {

    public Object[] handle(ResultSet rs) throws SQLException {
        return rs.next()?RowProcessor.toArray(rs):null;
    }
}
